//
//  GameHeader.h
//  GameProject
//
//  Created by Blair Trusler on 21/07/2011.
//  Copyright 2011 Blair Trusler. All rights reserved.
//


//Tilesets used in project from: http://silveiraneto.net/tag/tileset/
//Sprites used in project from: http://mez1009.deviantart.com/art/RPG-Sprite-Test-3-Sora-181101411, http://www.bunnytouch.com/Forum/tabid/61/forumid/3/postid/20/scope/posts/Default.aspx 

//Apple iOS imports
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <GameKit/GameKit.h>  
#import "RootViewController.h"

//Cocos2d imports: http://www.cocos2d-iphone.org/
#import "cocos2d.h"
#import "CocosDenshion.h"
#import "CDAudioManager.h"
#import "SimpleAudioEngine.h"



//SneakyInput imports: https://github.com/sneakyness/SneakyInput
#import "SneakyJoystick.h"
#import "SneakyButton.h"
#import "SneakyButtonSkinnedBase.h"
#import "SneakyJoystickSkinnedBase.h"

//GameProject imports 
#import "AppDelegate.h"
#import "Constants.h"
#import "CommonProtocols.h"
#import "GameCenterLogin.h"
#import "GameCenterDB.h"

#import "CCScrollLayer.h"
#import "CCSpotLight.h"

#import "AudioManager.h"
#import "Game.h"
#import "Background.h"
#import "HUD.h"

#import "Fog.h"

#import "MainMenuScene.h"
#import "LevelSelect.h"
#import "Credits.h"
#import "GuideScene.h"
#import "StatMenuScene.h"
#import "LevelCompleteLayer.h"
#import "LevelComplete.h"
#import "GameOverLayer.h"
#import "GameOver.h"
#import "Level2.h"
#import "Level3.h"
#import "Level4.h"
#import "Level5.h"

//Game Objects
#import "PathNode.h"
#import "GameObject.h"
#import "GameCharacter.h"
#import "PlayerSprite.h"
#import "EnemySprite.h"
#import "EnemySprite2.h"
#import "GameState.h"
#import "SceneManager.h"
#import "SaveGame.h"
#import "CutScene1.h"
#import "CutSceneLayer.h"

BOOL isCollision;

CGPoint tileCoord,tileCoord1;

//Sprites:
PlayerSprite *playerX;
CCSpriteBatchNode *sceneSpriteBatchNode;
EnemySprite *enemy1;
EnemySprite2 *enemy2;
EnemySprite2 *enemy3, *enemy4, *enemy5;

NSString *platformType; //Stores type of device game is running on

int playerSpawnX,playerSpawnY;
int enemySpawnX,enemySpawnY;
int enemySpawnX2,enemySpawnY2;
int enemySpawnX3,enemySpawnY3;
int enemySpawnX4, enemySpawnY4;
int enemySpawnX5, enemySpawnY5;

int timeSeconds;
int timeMinutes;

int direction;
BOOL isMoving;

CCLabelTTF *boostNotification;

int speedBoost,speedBoostTilt;     //change to a #define constant. 

BOOL soundToggle;   //Toggles sound on/off
BOOL dPadOn; //Toggles D-Pad/Accelerometer controls
CGPoint newPosition;
CGPoint oldPosition;
int levelPlayed;    //To keep track of which level has most recently been played (in order to save score for that level)

CCSpotLight *spotLight;
CCRenderTexture *renderLayer;

CGPoint fogCoord;

